<template>
  <div style="height: calc(100% - 55px);">
    <el-form
      ref="form"
      :model="form"
      label-position="top"
      label-width="90px"
      class="dv-form p-15"
    >
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="我院是否改变繁简认定" prop="c1">
            <el-radio-group
              v-model="form.c1"
              :disabled="type === 'detail' || status === 3"
            >
              <el-radio label="0">是</el-radio>
              <el-radio label="1">否</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="是否涉企" prop="c2">
            <el-radio-group
              v-model="form.c2"
              :disabled="type === 'detail' || status === 3"
            >
              <el-radio label="0">是</el-radio>
              <el-radio label="1">否</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row v-if="form.c1 === '0'" :gutter="20">
        <el-col :span="24">
          <el-form-item label="改变原因" prop="c3">
            <el-input
              v-model.trim="form.c3"
              :disabled="type === 'detail' || status === 3"
              type="textarea"
              placeholder="请输入"
              :maxlength="40"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="是否“两法”衔接" prop="c4">
            <el-radio-group
              v-model="form.c4"
              :disabled="type === 'detail' || status === 3"
            >
              <el-radio label="0">是</el-radio>
              <el-radio label="1">否</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="是否提前介入/时间" prop="c5">
            <el-radio-group
              v-model="form.c5"
              :disabled="type === 'detail' || status === 3"
            >
              <el-radio label="0">是</el-radio>
              <el-radio label="1">否</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="补查意见" prop="c6">
            <el-input
              v-model.trim="form.c6"
              type="textarea"
              :disabled="type === 'detail' || status === 3"
              placeholder="请输入"
              :maxlength="40"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="是否立案监督" prop="c7">
            <el-radio-group
              v-model="form.c7"
              :disabled="type === 'detail' || status === 3"
            >
              <el-radio label="0">是</el-radio>
              <el-radio label="1">否</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row v-if="form.c1 === '0'" :gutter="20">
        <el-col :span="12">
          <el-form-item label="变更说明" prop="c8">
            <file-upload ref="fileUpload" :value="form.c8" :disabled="type === 'detail' || status === 3" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
import fileUpload from '@/components/FileUpload'
export default {
  components: {
    fileUpload
  },
  props: {
    type: {
      type: String,
      default: ''
    },
    status: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      form: {
        c1: '1',
        c2: '1',
        c3: '',
        c4: '1',
        c5: '1',
        c6: '',
        c7: '1',
        c8: ''
      },
      rowData: {}
    }
  },
  methods: {
    init(rowData) {
      this.rowData = rowData
    }
  }
}
</script>

<style scoped lang='scss'>

</style>
